package com.ls.lserp.modules.setting.dao;

import java.util.List;

import com.ls.lserp.common.persistence.CrudDao;
import com.ls.lserp.common.persistence.annotation.MyBatisDao;
import com.ls.lserp.modules.setting.entity.Ognization;

/**
 * @ClassName: OgnizationDao
 * @Description: 分类接口
 * 
 * @author 
 * @date 2017年1月9日 下午17:50:00
 *
 */
@MyBatisDao
public interface OgnizationDao extends CrudDao<Ognization> {
	
	/**
	  * @Title: getOgnizationData
	  * @Description: 查重
	  * @param @param dict
	  * @param @return
	  * @return Ognization 
	  * @throws
	  */
	
	public Ognization getOgnizationData(Long id);
	
	/**
	  * @Title: updateBankAccount
	  * @Description: 更新银行帐户信息
	  * @param @param ognization
	  * @param @return
	  * @return int 
	  * @throws
	  */
	
	public int updateBankAccount(Ognization ognization);
	
	/**
	  * @Title: insertBankAccount
	  * @Description: 添加银行帐户信息
	  * @param @param ognization
	  * @param @return
	  * @return int 
	  * @throws
	  */
	
	public int insertBankAccount(Ognization ognization);
	
	/**
	  * @Title: insertOgnR
	  * @Description: 中间表信息
	  * @param @param ognization
	  * @param @return
	  * @return int 
	  * @throws
	  */
	
	public int insertOgnR(Ognization ognization);
	
	/**
	  * @Title: getCompanyId
	  * @Description: 查重
	  * @param @param id
	  * @param @return
	  * @return Ognization 
	  * @throws
	  */
	
	public Ognization getCompanyId(Long id);
	
	/**
	 * @Title: insertOgnizationBrand
	 * @Description: 添加品牌关联表信息
	 * @param @param ognization
	 * @param @return
	 * @return int 
	 * @throws
	 */
	
	public int insertOgnizationBrand(Ognization ognization);
	
	/**
	  * @Title: updateOgnizationBrand
	  * @Description: 更新品牌关联表信息
	  * @param @param ognization
	  * @param @return
	  * @return int 
	  * @throws
	  */
	
	public int updateOgnizationBrand(Ognization ognization);
	
	/**
	  * @Title: findCuSuList
	  * @Description: 获取客户、供货商和加工厂数据
	  * @param ognization
	  * @return List<Ognization>
	  * @throws
	  */
	public List<Ognization> findCuSuList(Ognization ognization);
	
	/**
	  * @Title: findOgnizationList
	  * @Description: 通过组织类别获取组织集
	  * @param ognization
	  * @return List<Ognization>
	  * @throws
	  */
	public List<Ognization> findOgnizationList(Ognization ognization);
}
